Add .eslintrc and fix few issues