Merge pull request #20 from fgenolini/master

Refactoring, JavaScript work
Support for older versions (not HTML 5)