Added polyfill and moved personalize javascript dependencies into a library.