Add second call to api upon slider init.

also move js to bottom of html and lots of modularizing*

*technical term.