wrap js in $(function () {}) and add related comments
move success into its own function
add bootstrap
Merge pull request #3 from adamrt/master

A few changes to make the code better