Added temporary javascript solution