Fixed integration tests
Additionally updated jshintrc:
  * replaced tabs with spaces
  * changed line endings from Win to Unix
  * added _after_ as predefined variable