Javasript re factoring
Bind settings
Merge pull request #1 from dlapiduz/master

Some JS work