javascript bug fix
Merge pull request #352 from solispauwels/master

javascript bug fix