Refactored to PackerJS