where is the correct place to insert a javascript code