removed not used js code