<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addCss" ifconfig="meanbee_shoppingassistant/general/enabled">
                <stylesheet>css/meanbee/shoppingassistant.css</stylesheet>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="core/template" name="meanbee.shoppingassistant">
                <action method="setTemplate" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <template>meanbee/shoppingassistant/button.phtml</template>
                </action>
            </block>
            <block type="page/html_head" name="meanbee.shoppingassistant.js.lib" template="meanbee/shoppingassistant/scripts.phtml">
                <action method="addJs" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <script>Meanbee/ShoppingAssistant/magentoShoppingAssistant.js</script>
                </action>
            </block>
            <block type="core/text" name="meanbee.shoppingassistant.togetherjs">
                <action method="setText" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <text><![CDATA[<script src="//togetherjs.com/togetherjs-min.js"></script>]]></text>
                </action>
            </block>
        </reference>
    </default>
</layout>

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <action method="addCss" ifconfig="meanbee_shoppingassistant/general/enabled">
                <stylesheet>css/meanbee/shoppingassistant.css</stylesheet>
            </action>
        </reference>
        <reference name="before_body_end">
            <block type="core/template" name="meanbee.shoppingassistant">
                <action method="setTemplate" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <template>meanbee/shoppingassistant/button.phtml</template>
                </action>
            </block>
            <block type="core/text" name="meanbee.shoppingassistant.togetherjs">
                <action method="setText" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <text><![CDATA[<script src="//togetherjs.com/togetherjs-min.js"></script>]]></text>
                </action>
            </block>
            <block type="page/html_head" name="meanbee.shoppingassistant.js.lib" template="meanbee/shoppingassistant/scripts.phtml">
                <action method="addJs" ifconfig="meanbee_shoppingassistant/general/enabled">
                    <script>Meanbee/ShoppingAssistant/magentoShoppingAssistant.js</script>
                </action>
            </block>
        </reference>
    </default>
</layout>

Make magento shopping assistant js last to be loaded in xml config.
Make magento shopping assistant js last to be loaded in xml config.
