fixed to javascript