place JS in separate file.