trying to get the javascript routes working