adding correct javascript syntax for reloading page