fixes + Alternative Javascript writing

Write Partials as Functions to be then loaded in with the scripts.js.
Better way to maintain the alternative settings like different element
selections while still having the function stored in a variable. Also
reduces the amount of check if the document is loaded (
$(document).ready ).

Credit:
https://github.com/sebastianekstrom/boilerplate/blob/master/source/js/pa
rtials/BP.Foo.js