Added and notated minor edits, mostly for using with jQuery and supporting non-mobile.