enhance js argument interpretation