split js into seperate file