added endpoint return on basis of label
fixed lint errors
fixed jslint errors
merged master