Split JS into separate file