switch to coffeescript and clean code. break post and redirect.