js callback ready, fixing navigation