Update main.js

Added inject css function