objectified the js