Break JS into separate file