where do I place the external JS to make this work?