Qt5.2 js fix. Fixes #13.