temporary javascript fixes