update JavaScript