Javascript documentation cleanup