in tensorboard_plugin/tensorboard_plugin_fairness_indicators/plugin.py [0:0]
def _serve_js(self, request):
filepath = os.path.join(os.path.dirname(__file__), 'static', 'index.js')
with open(filepath) as infile:
contents = infile.read()
return http_util.Respond(
request, contents, content_type='application/javascript')