Removing unused js functions and resolving issue #28

Some js functions was unused and variables too