Binding rules objects in Javascript global object