Add javascript omnifunc