Refactor inline js

Order and Product inline js refactoring, moved it to meta-boxes.js instead of inline.