Improved code formatting
Removed snow.js dependency