added javascript warning style

Closes #483