all of the code on the page looks correct, I could not see why it is not working.
We do not offer support for making this sort of modification to power store.
If you would like us to look into the issue with you, I would suggest signing up for a Premiere ticket.