Different things I've done in Javascript