Update to fix javascript errors