Corrected flash bug and added pretty flash javascript