CLC-1023 - [Front-end] Pass in calcentral/angular variables through anonymous function

https://jira.media.berkeley.edu/jira/browse/CLC-1023