Split js into logical files for ease of editing