removed js function