javascript expanded