Move JavaScript Functions To Each Files