JavaScript fixes

- Fixed the refresh limit when using JS
- Alpha numerical JS validation rule