Moved console to separate JS file