caching width and height
separate method that adding resize event and use window.resize instead of setInterval
merge master
fixed jshint error
renmove unused if statement
Merge pull request #97 from takashi/fix/rewrite-resize-handling-method

Fix/rewrite resize handling method