refactored background for UI sake
added main.js
added UI