Update planepacker.js

Previous fix was a bug. Probably shouldn't be doing this in github's editor :)