added js doc stuff