support JavaScript few tweaks