Moved bullet code into Bullets.js