incremental progress. JS script objectifying attempt