fixed scope of js file