Update to version 1.4

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

Update to version 1.4