Enhancements

How would this methods be called? There is no JS that calls them. Did you wanted to create PHP methods instead of JS?