Put javascript into separate file