restructured internals

constants at the top, utility functions at the bottom (function hoisting
FTW - though JSLint doesn't like it)

in the process, fixed misleading variable name (`s/Name//`)
fixed stylistic compliance

* explicit variables (avoiding nested jQuery calls)
* explicit function signatures (even when unused, for readability)
* line continuations (chaining operator)
* consistent use of quotes (single quotes only for embedding doubles)
* whitespace, natch
avoided duplicate event handlers

note the inline comment: I'm not sure why an event handler is required
in the first place if we're calling `focusField` directly anyway

(can't currently test this, so flying blind here)
Merge pull request #2 from FND/inline-images

various tweaks