issue #7 move javascript parts to tngal.js
further code clean-up
remove .gitignore from repository