fixed jsdoc and regex @RaymondLim