Used getter to get variable. Prevent overwriting JS variable in view helper