Rename jquery function name to message
Use new jQuery Messages function name
Move remaining script tags to the bottom of the page