code to check javascript enabled