Added js helper to the application controller