removed obsolete js code