seperate js into file