Update Main.js

Added spec param and more...