Added a save as favorite checkbox, and updated main.js with code to use it.