cleaned some not used js code