added JS in separate file