Changed pageload event for slug checks.
Generated JS