JavaScript: New Controller