split app javascript into separate file