fixed the javsascripot refatoring
Merge pull request #6 from kristiankyvik/refactor_javascript

fixed the javsascripot refatoring