Update to version 1.4

Rewrite of JS code + several minor fixes
Merge pull request #38 from CascadeFramework/master

Update to version 1.4
Adding 'main' element to doc

Adding 'main' element to doc
Merge pull request #39 from CascadeFramework/master

Adding 'main' element to doc
Merge pull request #40 from jslegers/master

Update to version 1.4