move it to javascript file