Removed devise files and constant and fixed else case for JS