Fixed Javascript AMD Wordpress issue