I tried using Uptime robot, but it still falls asleep after a while! How do I fix this?
It doesn't seem to be down. There is probably a problem in your code, then.
While this may not solve the problem, I do notice that you are missing a lot of semicolons. You should fix that.