Added some padding and 'improved' snap.js