change of js ref postion