Added res/script/snowflake.js
More work on drawing optimizeation