cleanup javascript and integrate better with flipbox
Merge pull request #2 from jlongster/master

cleanup javascript and integrate better with flipbox