take out fcall in individual js files