Halved execution time. Cleaned code.

Removed a duplicate call to the `construct` function. Added more JSHint
options to check unused variables and force stricter code standards.