removed js function wrapper