fixed JSHint warnings. (CODE IS UNSTABLE)