Fixes #839 - Warning Level javascript issue

#839