Create fragments.js

Code fragments yet to be distributed over files