fixed some jsdoc; removed some deprecated js functions that were already unused