Changed parseInt to Math.floor

also added vim swap files to .gitignore