Rename php to js in example