Only contribute the Scriptaculous libraries to the core stack if the JavaScript infrastructure is "prototype"
Remove unneeded code