added relative links and javascript

woohoo almost done forever!