separate javascript into separate file