added relative paths and required javascript files