updated bubble(factory).js removed tabs
moved inline js to its own file