this is the javascript links finally being done correctly