moving script tags to footer view