Separate JS into 3 files