added dist to ignore list

added dist to ignore list
fixed jslint errors on server

fixed jslint errors on server