Update Solutions in Javascript