Switched main JS to tabs
Minor spacing format
Fixed file format erros
Proper showing of Image Preview