Inserted Main content in this file

The main function will contain only normal js code (no jquery) for faster loading