fixed javascript links to work across browsers

Also IE now mostly works and firefox layout works