fixing recursive nesting issue. adding linting + uglification