refactoring …
moved javascript into separate file. also revisiting 'properties' as a method of variable transport.