update base template and js code in bottles.html