Added main for processingjs