add js code and add needed html tags