Added presence model and resolved jshint issues