added pollJapi.js for better model getting and setting