removed some of the function requirements to make code easier to follow
mild clean-up to keep things cleaner
added cross-browser height/width calculation
cleaned up build.coffee