moved js out of view and into external file