Update script.js

merged showSuccess() and showFailure() into showMessage adding a second param for the class attribute
Merge pull request #1 from guizmo/master

Making showMessage() reusable