javascript final draft finished