jspdf.js :
Fixed and Reordered some portions of code to be more JSLint friendly.