Pierre's javascript