Pass your controller variables to javascript