Moved js to an object + no jquery