Consistent JS argument handling
Added language cli option