Reorganize Javascript code of Twitter Bootstrap