adding script to footer