Not sure about const give it's non-standard. Also does this work if 'use strict' is added?