adde a javascript code