pageTitle implemented in js