Update luismark.js

Golfed a lot the main code and added loads of methods.