Added format_seconds function to PHP helper and changed name from format_time to format_seconds on JS helper.