changed all paths to relative

changed paths used by require's text plugin to relative and moved
text.js into js/libs