Fix hard coded main call
Merge pull request #2 from bergmark/jsmaincallfix

Fix hard coded main call