commit with improved javascript