Issue #1555: Use function after definition
Issue #1555: Use function after definition

Fixes some `JSLint` inspection violations.

Description:
>JSLint: 'main' was used before it was defined.

checkstyle/checkstyle,HubSpot/checkstyle,romani/checkstyle,izishared/checkstyle,designreuse/checkstyle,ivanov-alex/checkstyle,ilanKeshet/checkstyle,vboerchers/checkstyle,vboerchers/checkstyle,ilanKeshet/checkstyle,izishared/checkstyle,jasonchaffee/checkstyle,nikhilgupta23/checkstyle,rnveach/checkstyle,FeodorFitsner/checkstyle,mkordas/checkstyle,autermann/checkstyle,philwebb/checkstyle,jochenvdv/checkstyle,vboerchers/checkstyle,baratali/checkstyle,ivanov-alex/checkstyle,jasonchaffee/checkstyle,jonmbake/checkstyle,designreuse/checkstyle,zofuthan/checkstyle-1,philwebb/checkstyle,FeodorFitsner/checkstyle,sirdis/checkstyle,romani/checkstyle,sirdis/checkstyle,llocc/checkstyle,autermann/checkstyle,rmswimkktt/checkstyle,philwebb/checkstyle,designreuse/checkstyle,MEZk/checkstyle,ivanov-alex/checkstyle,beckerhd/checkstyle,bansalayush/checkstyle,zofuthan/checkstyle-1,liscju/checkstyle,jochenvdv/checkstyle,MEZk/checkstyle,Bhavik3/checkstyle,WilliamRen/checkstyle,zofuthan/checkstyle-1,sabaka/checkstyle,jochenvdv/checkstyle,sharang108/checkstyle,AkshitaKukreja30/checkstyle,nikhilgupta23/checkstyle,attatrol/checkstyle,FeodorFitsner/checkstyle,attatrol/checkstyle,romani/checkstyle,baratali/checkstyle,jonmbake/checkstyle,checkstyle/checkstyle,WilliamRen/checkstyle,checkstyle/checkstyle,rnveach/checkstyle,mkordas/checkstyle,romani/checkstyle,bansalayush/checkstyle,mkordas/checkstyle,checkstyle/checkstyle,checkstyle/checkstyle,baratali/checkstyle,autermann/checkstyle,sirdis/checkstyle,liscju/checkstyle,beckerhd/checkstyle,gallandarakhneorg/checkstyle,gallandarakhneorg/checkstyle,llocc/checkstyle,Bhavik3/checkstyle,llocc/checkstyle,sabaka/checkstyle,AkshitaKukreja30/checkstyle,jasonchaffee/checkstyle,rnveach/checkstyle,sabaka/checkstyle,checkstyle/checkstyle,jonmbake/checkstyle,rmswimkktt/checkstyle,bansalayush/checkstyle,Bhavik3/checkstyle,HubSpot/checkstyle,attatrol/checkstyle,romani/checkstyle,MEZk/checkstyle,izishared/checkstyle,sharang108/checkstyle,AkshitaKukreja30/checkstyle,rmswimkktt/checkstyle,rnveach/checkstyle,ilanKeshet/checkstyle,sharang108/checkstyle,nikhilgupta23/checkstyle,liscju/checkstyle,beckerhd/checkstyle,HubSpot/checkstyle,WilliamRen/checkstyle,rnveach/checkstyle,romani/checkstyle,gallandarakhneorg/checkstyle,rnveach/checkstyle