Refactor
Allow javascript to be turned on or off via initializer in application