resolved error to redirect home. Not reload .js