[REFACTOR] Shift `$document` and `$window` to dom-globals namespace

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Dont enclose require in [] for namespaces we're not aliasing

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Remove unused var

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use uppercase letters for vars

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Rename `Timetable` var to `TIMETABLE`

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use `TIMETABLE` vector as a function

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use `TIMETABLE` row vector as function

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use destructuring

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use `timetable-get-day-row` to replace some code

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use destructuring for hash

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Correct whitespace

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Rename a binding

to a more meaningful name

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use destructuring to remove `let`

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Remove redundant `(not (nil? ))` test for nil

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Rename a binding

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Use destructuring to remove `let`

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Remove redundant `(not (nil?))` test

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Create `cljs-nusmods.timetable-constants` namespace

This holds the `TIMETABLE-MIN-ROWS-FOR-DAY` var/constant

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
[REFACTOR] Create `cljs-nusmods.html-timetable` namespace

For functions which manipulate the HTML Timetable. This allows us to
separate the implementation of the in-memory Timetable from the HTML
Timetable, and makes it clear that the HTML Timetable follows from the
in-memory Timetable.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>