[BUGFIX] Fix JS errors in page module