A fourth attempt at javascript pahts.