fixed issue_146 by incorporating the bootstrap reset and reordering javascript files

this replaces pull request #197 with an alternative approach (as discussed in the comments there)