Reworked javascript a bit (added actions implementation), and split up select2 dependency to separate bundle