deleted non-used js functions