Refactoring code. Created files strike.js and strikeSpec.js