Fix for Snap to Grid inaccuracy

Use Raphael's built in snapping functionality rather than a weird hack that doesn't seem to work.