Clean up save-RES, make button locations more consistent

Fixes #645, #646
Replace attributes with .data()

Made some other jQuery modifications/fixes
Fix Date(), which is not equivalent to new Date()
Merge pull request #649 from mc10/buttons

Make button locations more consistent