js skeleton final checkin. TODO: implementation
PE1 javascript complete. Naive implementation.