/* Strip before the first underline, by Henrique Vicente http://flickr.com/photos/henriquev/ Too cool to be copyrighted Done after listening to Rape me, by Nirvana To be used in production environment Method: child(strip("real_string")); // returns string */ function strip(element) { var x=0, rape = '', hand = element.split('_'); while(x1) { rape +='_'; } rape += hand[x]; x++; } return rape; }