Couldn't resolve loading of local/external javascript, kept script in the html