Extracted paragraph js

I moved the scripts into their own file