Split js into seperate file