added ability to seperate $ for mixed javascript libraries