wrap bindings with javascript to do "fancy stuff"