Refactored js

tenary formatting on if statements to reduce code
Updated id's

Changed id's for the view so that IE doesn't jump to the container each
time there's a UI change
Object not needed in function
model updated
data model bugs fixed per JB email v3
added post message functionality for embedding within an iframe
fixed data model bugs from the demo version
more data model bug fixes
Merge branch 'postmessagetest' into dev
post message to parent for iframe
post message updates for iframe compatibility
added post message and comments
removed info option and switched to standalone rather than iframe
more meaningful comments
Merge pull request #3 from danblundell/dev

Dev